<template>
    <div style="width:100%;height:100%;overflow:hidden">
        <img style="max-width:100%;max-height:100%" :src="wechatQrcode">
    </div>
</template>

<script>
    export default {
        data() {
          return {
              wechatQrcode: ''
          }
        },
        mounted() {
            this.$store.commit('set_title', '我的推广二维码')

            if (!this.$store.state.customer || !this.$store.state.customer.wechatQrcode) {
                this.$router.goback()
                return
            }

            this.wechatQrcode = this.$store.state.customer.wechatQrcode
        }
    }
</script>